/*
 *  This file is part of LifeBudget - Copyright 2010 Clifton Eaton
 *  ------------------------------------------------------------------
 *  LifeBudget is free software: you can redistribute it and/or modify
 *  it under the terms of the GNU General Public License as published by
 *  the Free Software Foundation, either version 3 of the License, or
 *  (at your option) any later version.
 *
 *  LifeBudget is distributed in the hope that it will be useful,
 *  but WITHOUT ANY WARRANTY; without even the implied warranty of
 *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *  GNU General Public License for more details.
 *
 *  You should have received a copy of the GNU General Public License
 *  along with LifeBudget.  If not, see <http://www.gnu.org/licenses/>.
 */
package org.lifebudget.app.client.service;

import java.util.List;

import org.lifebudget.app.client.mvc.model.Category;

import com.google.gwt.user.client.rpc.AsyncCallback;

/**
 * The asynchronous interface for the {@link CategoryService} interface.
 */
public interface CategoryServiceAsync {

	/**
	 * Gets the all categories.
	 *
	 * @param includeDefault the include default
	 * @param callback the callback
	 * @return the all categories
	 */
	void getAllCategories(boolean includeDefault, AsyncCallback<List<Category>> callback);

	/**
	 * Removes the category.
	 *
	 * @param category the category
	 * @param callback the callback
	 */
	void removeCategory(Category category, AsyncCallback<List<Category>> callback);

	/**
	 * Update categories.
	 *
	 * @param category the category
	 * @param callback the callback
	 */
	void updateCategories(List<Category> category, AsyncCallback<List<Category>> callback);



}
